home *** CD-ROM | disk | FTP | other *** search
/ Adventures with Oslo: Tools & Gadgets / Adventures with Oslo - Tools and Gadgets.ISO / mac / Ad / Mod04 / forceps / 00045.ls < prev    next >
Encoding:
Text File  |  1994-09-23  |  557 b   |  22 lines

  1. on mouseDown
  2.   repeat while the stillDown
  3.     if the castNum of sprite 6 < the number of cast "last wheel" then
  4.       set the castNum of sprite 6 to the castNum of sprite 6 + 1
  5.     else
  6.       set the castNum of sprite 6 to the number of cast "first wheel"
  7.     end if
  8.     updateStage()
  9.   end repeat
  10. end
  11.  
  12. on mouseUp
  13.   global gBackPack
  14.   if the castNum of sprite 6 = the number of cast "correct wheel" then
  15.     set the cursor of sprite 6 to 0
  16.     if getOne(gBackPack, #noForceps) = 0 then
  17.       add(gBackPack, #noForceps)
  18.     end if
  19.     go("end")
  20.   end if
  21. end
  22.